package com.example.demo.model;

/**
 * Created by Administrator on 2017/10/20/020.
 */
public class HostHolder {
    private static final ThreadLocal<User> users=new ThreadLocal<>();

   public User getUser(){
       return users.get();
   }

   public void setUser(User user){
        users.set(user);
   }

   public void clearUser(){
       users.remove();
   }


}
